<!DOCTYPE html>
<html lang="en">
<head>
    <title>后台管理系统</title>
<#include "../include/easyui.ftl"/>
</head>
<body>
<div>
    <form id="mainform" action="${ctx}/system/dict/${action}" method="post">
        <table class="formTable">
            <tr>
                <td>标签名：</td>
                <td>
                    <input type="hidden" name="id" value="${dict.id!}"/>
                    <input name="label" type="text" value="${dict.label!}" class="easyui-validatebox"
                           required="required"/>
                </td>
            </tr>
            <tr>
                <td>值：</td>
                <td><input name="value" type="text" value="${dict.value!}" class="easyui-validatebox"
                           required="required"/></td>
            </tr>
            <tr>
                <td>类型：</td>
                <td><input name="type" type="text" value="${dict.type!}" class="easyui-validatebox"
                           required="required"/></td>
            </tr>
            <tr>
                <td>描述：</td>
                <td><textarea rows="2" cols="41" name="description"
                              style="font-size: 12px;font-family: '微软雅黑'">${dict.description!}</textarea!></td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    $(function () {
        $('#mainform').form({
            onSubmit: function () {
                var isValid = $(this).form('validate');
                return isValid;	// 返回false终止表单提交
            },
            success: function (data) {
                successTip(data, dg, d);
            }
        });
    });

</script>
</body>
</html>